#!/usr/bin/env node

const Radio = require('./06-radio');
const station = {
        freq: '100.8',
        name: 'music radio'
};

const radio = new Radio(station);

radio.on('play', (station) => {
  console.log('"%s" FM %s opened', station.name, station.freq);
  console.log('开始播放音乐');
});

radio.on('stop', (station) => {
  console.log('"%s" FM %s closed', station.name, station.freq);
});

